<?php
namespace app\admin\validate;
use think\Validate;

class Link extends Validate{
    protected $rule = [
        'title' => 'require|unique:link|max:25',
        'url' => 'require'
    ];

    protected $message = [
        'title.require' => '链接名称不能为空',
        'title.max' => '链接名称最多不能超过10个字符',
        'title.unique' => '链接名称已存在！',

        'url.require' =>'链接地址不能为空'
    ];


}